<template>
  <div class="help-container">
    <div class="OperatorLogin-head1" style="height: 30px"><img src="../assets/img.png" width="360px"></div>
    <header class="help-header">
      <span class="back-arrow" @click="$router.push('/Help')">←</span>
      <span class="title">找回账号</span>
      <span class="feedback">我的反馈</span>
    </header>
    <div class="help-content">
      <div class="help-section" v-for="item in helpItems" :key="item.title">
        <router-link :to="item.to" class="section-link">
          <h2 class="section-title">{{ item.title }}</h2>
          <p class="section-description">{{ item.description }}</p>
          <span class="arrow">></span>
        </router-link>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      helpItems: [
        { title: "使用手机号找回", description: "点此找回账号", to: "/RetrieveAccount" },
      ]
    };
  },
};
</script>

<style scoped>
.help-container {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  background-color: #fff;
  font-family: Arial, sans-serif;
}

.help-header {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.back-arrow,
.feedback {
  cursor: pointer;
  font-size: 16px;
}

.title {
  font-size: 18px;
  font-weight: bold;
}

.help-content {
  padding: 15px;
}

.help-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.section-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.section-title {
  font-size: 16px;
  margin: 0;
}

.section-description {
  flex: 1;
  font-size: 14px;
  color: #666;
  margin: 0 10px;
}

.arrow {
  font-size: 16px;
  color: #ccc;
}

.common-questions {
  font-size: 14px;
  color: #999;
  margin-top: 20px;
}

.questions-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.questions-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

.view-all {
  text-align: center;
  font-size: 14px;
  color: #007bff;
  cursor: pointer;
  margin-top: 20px;
}
</style>
